<?php
class formcontactIndexController extends Zendvn_Component_Controller{
	public function indexActivity(){
		//$this->setNoLayout();
	}
	public function submitActivity(){
		$this->setNoLayout();
		$this->setNoView();
		
		$msg = array();
		
		if($this->isSetParam("name")){
			$name = $this->getParam("name");
			if($name == "") $msg['name'] = $this->translate("Name_empty_msg"); 
		}
		
		if($this->isSetParam("email")){
			$email = $this->getParam("email");
			if($email == "") $msg['email'] = $this->translate("Email_empty_msg"); 
			else{
				
			}
		}
		
		if($this->isSetParam("message")){
			$message = $this->getParam("message");
			if($message == "") $msg['message'] = $this->translate("Msg_empty_msg"); 
		}
	}
	public function postDispath(){
		
	}
}